d71b4b
@@ -305,9 +305,9 @@
private MDatabase getMDatabase(String name) throws NoSuchObjectException {
       if(!commited) {
         rollbackTransaction();
       }
-      if(db == null) {
-        throw new NoSuchObjectException("There is no database named " + name);
-      }
+    }
+    if(db == null) {
+      throw new NoSuchObjectException("There is no database named " + name);
     }
     return db;
   }
